package com.king01.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Staff {

  private Integer id;
  private Integer staffid;
  private String staffname;
  private String password;
  private String idcard;
  private String address;
  private String phone;
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  private Date entrytime;
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  private Date leavetime;
  private Integer state;
  private Integer roleid;
  private Integer deptid;
  private String url;
  private Integer branchid;
  private String branchname;

  //关联的门店对象
  private Branch branch;
  //关联的角色
  private Role role;
  //关联的部门
  private Department department;

  private String rolename;
  private String deptname;
}
